using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Comteck.Domain.Entities;

namespace Comteck.Entities.Sys {
  /// <summary>
  /// 
  /// </summary>
  [Table("PrintTemplate")]
  public class PrintTemplate : Entity<string> {
    /// <summary>
    /// 菜单编码
    /// </summary>
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public override string Id { get; set; }

    /// <summary>
    /// 模板名称
    /// </summary>
    [Required, MaxLength(50)]
    public virtual string Name { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public virtual int Status { get; set; }

    /// <summary>
    /// 菜单id
    /// </summary>
    [Required]
    public virtual string MenuId { get; set; }

    /// <summary>
    /// 模板文件
    /// </summary>
    public virtual string Data { get; set; }

    /// <summary>
    /// 系统内置
    /// </summary>
    public virtual int IsSystem { get; set; } = 0;

    /// <summary>
    /// 排序
    /// </summary>
    public virtual int SeqNo { get; set; } = 0;

    /// <summary>
    /// 备注
    /// </summary>
    public virtual string Description { get; set; }
  }
}
